package com.zretc.controller;

import com.zretc.entity.Permission;
import com.zretc.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 周文涛
 * 2020年8月24日18:23:09
 * 用户能显示的菜单
 */
@RestController
public class MenuController {

    @Autowired
    private UserInfoService userInfoService;

    @GetMapping("menu")
    public List<Permission> getUserMenu(){
        return userInfoService.getUserMenu();
    }
}
